package com.xy.constant.enums;

import java.util.HashMap;
import java.util.Map;

public enum DocxTypeAndLabelEnum {
    //民事诉讼文档
    DOCX_TYPE_MSSS(1,new  String[] {
                "ygname", //原告姓名
                "ygxbnan", //性别男
                "ygxbnv",//性别女
                "ygbirthday",//出生日期
                "ygmz",//民族
                "yggzdw",//工作单位
                "ygzw",//职务
                "yglxdh",//联系电话
                "ygzsd",//住所地
                "gyjcjzd",//经常居住地
                "dlrsfydlr",//是否有代理人
                "dlrxm", "dlrdw", "dlrzw", "dlrlxdh", "dlrdlqx",//代理人信息
                "sddzdz","sddzsjr","sddzdh",//送达地址
                "sfjsdzsd",//是否接受电子送达
                "bgxm", "bgzsd", "bgzcd", "bgfddbr","bgzw","bglxdh","bgtyshxydm","bglx",//被告信息
                "sfzzgzzf",//诉讼请求和依据 是否主张工资支付
                "ssqqhyj1",//1.是否主张工资支付
                "ssqqhyj2",//2.是否主张未签订书面劳动合同双倍工资
                "ssqqhyj3",//3.是否主张加班费
                "ssqqhyj4",//4.是否主张未休年休假工资
                "ssqqhyj5",//5.是否主张未依法缴纳社会保险费造成的经济损失
                "ssqqhyj6",//6.是否主张解除劳动合同经济补偿
                "ssqqhyj7",//7.是否主张违法解除劳动合同赔偿金
                "ssqqhyj8",//8.本表未列明的其他请求
                "ssqqhyj9",//9.诉讼费用承担
                "ssqqhyj10",//10.是否已经申请诉前保全 保全法院
                "ssqqhyj11",//11.是否已经申请诉讼保全 保全文书
                "ssqqhyj12",//12.是否已经申请诉讼保全 无
                "sshly1",//事实和理由 1.劳动合同签订情况
                "sshly2",//2.劳动合同履行情况
                "sshly3",//3.解除或终止劳动关系情况
                "sshly4",//4.工伤情况
                "sshly5",//5.劳动仲裁相关情况
                "sshly6",//6.其他相关情况
                "sshly7",//7.诉请依据
                "sshly8",//8.证据清单（可另附页）
    });

    public final Integer typeId;
    public final String[] docxKeyStrings;
    public int getTypeId() {
        return typeId;
    }
    public String[] getDocxKeyStrings() {
        return docxKeyStrings;
    }
    DocxTypeAndLabelEnum(Integer typeId, String[] docxKeyStrings){
        this.typeId = typeId;
        this.docxKeyStrings = docxKeyStrings;
    }
    private static final Map<Integer, DocxTypeAndLabelEnum> TYPE_MAP = new HashMap<>();
    static {
        for (DocxTypeAndLabelEnum docxTypeAndLabelEnum : values()) {
            TYPE_MAP.put(docxTypeAndLabelEnum.getTypeId(), docxTypeAndLabelEnum);
        }
    }
    public static String[] getDocxKeyStringsByType(int type) {
        DocxTypeAndLabelEnum docxTypeAndLabelEnum = TYPE_MAP.get(type);
        return docxTypeAndLabelEnum != null ? docxTypeAndLabelEnum.getDocxKeyStrings() : null;
    }
}
